Architectural physical synthesis

ABSTRACT

The present invention discloses methods and apparatuses to design an integrated circuit. According to one aspect, the present invention circuit design discloses an iterative process of synthesis and placement where each iteration provides incremental changes on the design of the integrated circuit. The synthesis transform is then made with accurate timing information from the placement, and the process is incrementally iterative toward the final timing enclosure of the design. The incrementally iterative approach of the present invention provides a continuous advancement from synthesis to placement and vice versa, with the incremental improvements on synthesis made with knowledge of current instance placement, and the incremental improvements on placement made with knowledge of current circuit logic.

RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No.60/951,436, filed Jul. 23, 2007 which provisional application isincorporated herein by reference. This application is also related toand is being filed on the same day as application Ser. No. 12/177,869,filed Jul. 22, 2008, entitled: “Architectural Physical Synthesis”.

FIELD OF THE INVENTION

The present invention relates generally to the field of designingintegrated circuits, and More particularly to the design of integratedcircuits through a synthesis process from a high level description.

BACKGROUND

For the design of digital circuits on the scale of VLSI (very largescale integration) technology, designers often employ computer aidedtechniques. Standard languages such as Hardware Description Languages(HDLs) have been developed to describe digital circuits to aid in thedesign and simulation of complex digital circuits. Several hardwaredescription languages, such as VHDL and Verilog, have evolved asindustry standards. VHDL and Verilog are general purpose hardwaredescription languages that allow definition of a hardware model at thechip primitive level, the register transfer level (RTL) or thebehavioral level using abstract data types. As device technologycontinues to advance, various product design tools have been developedto adapt HDLs for use with newer devices and design styles.

In designing an integrated circuit with an HDL code, the code is firstwritten and then compiled by an HDL compiler. The HDL source codedescribes at some level the circuit elements, and the compiler producesan RTL netlist from this compilation. An RTL netlist is composed of aplurality of RTL objects, or components, and a plurality of nets whichare the signal connections between the components. The RTL netlist canbe a technology independent netlist in that it is independent of thetechnology or architecture of a specific vendor's integrated circuit,such as field programmable gate arrays (FPGA) or an application-specificintegrated circuit (ASIC). The RTL netlist corresponds to a schematicrepresentation of circuit elements (as opposed to a behavioralrepresentation). A mapping operation is then performed to convert fromthe technology independent RTL netlist to a technology specific netlistwhich can be used to create circuits in the vendor's technology orarchitecture, including placing the instances and routing theinterconnections so that the circuit meets given timing, space and powerconstraints.

Early electronic design automation (EDA) totally separates the HDLsynthesis from the placement/routing processes as shown in FIG. 1. Inoperation 11, HDL code is prepared. In operation 13, the HDL prepared inoperation 11 is compiled and synthesized to produce a netlist which istypically optimized by performing logic optimization. Thereafter, amapping process maps the netlist to a specific targettechnology/architecture. At the end of operation 13, the synthesis hasbeen completed and a netlist which is specific to thetechnology/architecture used in the vendor's IC is now provided. Thisnetlist is effectively at a gate level with timing analysis estimated byusing statistical models of the interconnect properties based onpre-placement information such as fanout count or connected componenttype and size. After synthesis, a conventional place operation isperformed on the logic circuit in operation 15 with local changes to thenetlist (at only a chip primitive or cell or gate level) made inoperation 17 to meet timing performance. A conventional routingoperation is then performed in operation 19 in order to create a designof the circuitry in each of the ICs. If there are any unmet constraints,the process makes modifications with loop back iterations.

Formerly, when instance delays were dominant in the early synthesistools, the timing estimates based on the statistical models weresufficiently accurate so that the separation of synthesis and placementrequired relatively few iterations back to the HDL and synthesis stages.

However, with shrinking technology nodes, the interconnect delays becomesignificant, surpassing the gate delays. This results in the delayestimation in the synthesis operation becoming less and less correlatedto the actual delays following placement and routing operations, leadingto the lack of timing predictability between post-synthesis andpost-layout results. Thus in many cases, after the placement and routingprocesses, the circuit physical layout cannot meet the circuit designcriteria, and often the designers must start over from the synthesisstep and repeat the synthesis/placement/routing processes.

To improve synthesis, it is important to account for the physicalcharacteristics associated with the design (e.g. placement) during thesynthesis process. A series of techniques have been adopted to bringplacement information into the synthesis process such as floorplanning,in-place optimization (IPO), and physical synthesis.

In the floorplanning technique, the design is partitioned into regionson the chip and placement based interconnect estimation is used forinter-region interconnect, while interconnect within a region isestimated using statistical models. Floorplans can be used either at theearly RTL stages or later after an initial synthesis run. Floorplanningcan be extended to partitioning, replicating and slicing of RTLcomponents into regions and combined with RTL level timing and areamodels. The improved timing from inter-region timing can then be used tomore accurately drive RTL level optimizations. Producing a good qualityfloorplan manually is challenging and requires skilled users. Automaticfloorplanners like the one from Tera Systems (U.S. Pat. Nos. 6,145,117and 6,360,356) can create regions and assign RTL components to them.Because synthesis is decoupled and follows the automatic floorplanning,the accuracy of the timing and area information is poor during thefloorplanning.

A technique called in-place optimization (IPO) provides back-annotationof place-and-route delays into the synthesis domain. Critical paths arere-optimized but because detail placement is not updated, interconnectdelays for modified nets revert to statistical models. If many changesare made, then the following legalization of the resulting netlist mayrequire moving instances far from their initial positions, resulting inlarge delay estimation errors. For this reason IPO is seen as unstablewhen significant changes are required to achieve timing closure.

Another technique is physical synthesis which is an improvement over theIPO technique where a small number of optimizations on a mapped netlistis interleaved with incremental re-legalization to maintain fidelity inthe delay and resource metrics. A limitation of this technique is thatindividual changes are limited to modest increases in resources or theinstability problem of the IPO technique re-surfaces. Currently thereare several different algorithms for physical synthesis. FIG. 2 showsone algorithm providing a physical synthesis engine using timingestimations based on the proximity of placed instances. After the mappednetlist is initially placed in operation 23, the physical synthesisoperation selects portions of the circuit for incremental optimizationand re-placement in operation 24 which is performed only at the chipprimitive level.

From the foregoing, it can be seen that algorithm improvements forelectronic design automation are needed.

Prior patents also relate to or describe chip synthesis, and thesepatents include: U.S. Pat. Nos. 6,519,754; 6,711,729; 7,010,769;6,145,117; and 6,360,356. Placement algorithms are recently described ina paper: Bo Hu, Timing-Driven Placement for Heterogeneous FieldProgrammable Gate Array, IEEE/ACM International Conference onComputer-Aided Design, November 2006 (ICCAD '06), pp. 383-388 (ISSN:1092-3152; ISBN 1-59593-389-1).

SUMMARY OF THE DESCRIPTION

The present invention discloses methods and apparatuses to design anintegrated circuit. In exemplary embodiments, the present inventioncircuit design discloses an iterative process of synthesis andplacement, which begins at the RTL or Behavioral level, where eachiteration provides incremental changes through transforms of the designof the integrated circuit. In certain aspects, the transform can beeither a synthesis or placement transform. A synthesis transformmodifies the objects in the netlist and/or the nets forming theconnections between the objects. A placement transform modifies thelocations of one or more objects in the netlist. The incrementallyiterative approach of at least certain embodiments of the presentinvention provides a continuous advancement using the appropriatesynthesis and placement transforms as determined by design metrics suchas the current circuit netlist, placement, timing, resourceavailability, and power. In certain aspects, after each transform, theeffected design metrics are updated so that future transform decisionsare based on an accurate design statistics. The process is incrementallyiterative toward the final timing resource and power enclosures of thedesign.

A key aspect of at least certain embodiments of the invention is thatplacement takes place before the specific resource types have beenidentified for high level components. For example, alternativeimplementations with desirable weights and associated resource totalsfor components are cataloged and the placer evolves the placement tomove the components near to the resource types for desirableimplementations.

In a preferred embodiment, the present invention starts with a graphrepresenting an RTL or Behavioral design (the circuit) and a physicalmap of chip resources. Iterative transforms are performed where eachtransform produces an optimization or refinement of the circuit or ofthe placement of objects in the circuit.

In an embodiment, a transform consists of a high level optimization.This transform optimizes a components or a plurality of componentsthrough a rule or mathematical transform into a functionally equivalentalternate set of component(s) that have superior characteristics such astiming, power or resource consumption. An example of such a transform isreorganizing arithmetic expressions to reduce tree height to improvedelay. Another example is resource sharing or unsharing.

In another embodiment, the high level optimization transform refinesgroup(s) of circuit object(s) from more abstract forms to more concreteforms. An example of a refinement transform is the mapping of anarithmetic expression onto a DSP resource on the chip. When an abstractform is refined, there are usually many implementation choices. Forexample, an arithmetic expression could be implemented by a specialpurpose arithmetic function (a DSP block) on the chip, by table lookupin a memory, or built out of the lower level logic components on thechip (LUTs or gates and flip-flops). Components from a BehavioralSynthesis flow may have multiple implementations registered based onalternative schedules and sharing of resources. Such alternatives forbehavioral components can also be dynamically generated based on currentavailable resources and interconnect delays.

In another embodiment, the refinements transforms also have an urgencymetric based on the quality of alternative implementations and areselected in order of urgency. The quality of an implementation ismeasured in terms of design objectives like area consumption, powerconsumption or timing. Other more esoteric objectives like single eventupset hardness can also be included. For example, if a design containsone large memory and several small sized memories, and the large memoryhas a relatively poor implementation quality when implemented by thelogic fabric, it is relatively much more important to associate thelarge memory with scarce special purpose memory resources on the chipthan the medium sized memories in the design. The urgency metric for thelarge memory would then be much higher than the metric for the smallmemories. Once components are mapped to a specific implementation andassociated with specific resources on the chip, the connections to thesecomponents act as anchors for the placement of the remainder of thecircuit, improving the quality of the timing and available resourceestimation.

In one embodiment, the placement transform can be a refinement oflocation of one or more placeable objects, to improve placement metricssuch as: instance congestion, routability, and circuit performance. Aplaceable object may consist of a Behavioral synthesis component, an RTLblock of unmapped logic, mapped logic, or any combination of these.

In an embodiment, the placement transform is capable of modifyingobjects of different levels of abstraction. For example, some placeableobjects may be RTL blocks, while others may be mapped gates.

In another embodiment, a refinement transform is triggered when theplacement is evolved enough locally that one can determine availableresources and estimate routing delays.

According to another aspect of the present invention, an exemplarymethod for designing integrated circuits provides an iteration ofincremental transforms where the synthesis and placement transforms arenot in any order, but only selected for their functionality. The circuitdesign automation selects the next transform, either synthesis orplacement, based on a choice function. At each iteration, the costs fora predetermined list of transforms are calculated. The cost may includelook ahead to the changes in cost of other transforms. For example, ifan arithmetic operation is mapped to a ROM, then the ROM option could beremoved for implementation of another operation, raising its cost. Thebest transform is selected based on the cost convergence criteria suchas the current placement, netlist, resources, timing or power.

The next transform can be a placement update, a resource assignment, asynthesis optimization, a placement optimization, or a routing update.Thus the state of the IC design progresses incrementally toward thefinal circuit specification and layout.

In another embodiment, the placement transforms are performediteratively until critical paths starts to shape or until resources aresufficiently spread according to a predetermined congestion threshold.The criteria for iteration performance are timing, congestion perresource layer, area utilization and power.

The congestion per resource layer can be determined by the use ofresource layers. There is a resource layer for each distinct primitivetype of resource on chip. For example, today's FPGAs and StructuredASICs have introduced irregular layouts of primitive chip resources.These primitives types include logic (LUTS), flip-flops, special I/Ocells like SERDES for high speed serial interconnect, a variety ofmemory components with different capacities and high speed arithmeticblocks to speed up DSP algorithms. Other than logic and flip-flops,typically, these resources are included in a sparse and possiblyirregular fashion. Many FPGAs have a limited amount of RAM, DSP, andother dedicated logic blocks arranged in sparse columns on the chip Forexample, DSP arithmetic blocks might be available in only 2 columns inthe chip layout. A resource layer is a distribution map created for eachprimitive type and records the available resource locations for thattype and the placement of each primitive of that type. A layer is saidto be congested if a localized physical region with more usage thensupply exists.

In a typical example of this method, an initial state of the design ofthe integrated circuit is generated from a high level representationwith the timing constraints and placement constraints such as IO pins,existing floorplan or existing placement. The high level representationcan be a hardware description language (HDL) code or a technologyindependent RTL netlist after the compilation from a hardwaredescription language (HDL) code.

In an embodiment, the netlist of the initial state of the design of theintegrated circuit is first optimized by a series of neutraloptimizations based on timing. The neutral optimizations can be arecovery of any area that can be undone easily such as resource sharingor unsharing; adder tree decomposition which is preferably based onfanout table timing; a resource assignment, a flattening of the netlistto facilitate optimization across the hierarchy; multiplexer extractionor restructuring.

In an embodiment, the general flow of the state of the design of theintegrated circuit progresses from a RTL netlist to a decomposition, andfactorization, then to a mapped and routed netlist. Placementmodifications, resource assignments and area or timing optimizations areperformed through the flow.

In an embodiment, the process of refining the placement and circuitarchitecture repeats until all high level components have been given aspecific implementation and resource assignment and the placement hasbeen spread on the chip such that every component has sufficient nearbyresources for implementation. A more traditional physical synthesis flowmay be used from this point to complete the implementation.

In another embodiment, the applied transforms and their potentialalternatives are recorded. The flow may be repeated and the alternativetransforms can be applied to achieve better results.

The present invention also discloses apparatuses, including softwaremedia which may be used to design integrated circuits. For example, thepresent invention includes digital processing systems which are capableof designing integrated circuits according to the present invention, andthe invention also provides machine readable media which, when executedon a digital processing system, such as a computer system, causes thedigital processing system to execute a method for designing integratedcircuits.

Other features of the present invention will be apparent from theaccompanying drawings and from the detailed description which follow.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example and notlimitation in the figures of the accompanying drawings in which likereferences indicate similar elements.

FIG. 1 shows a prior art method for designing integrated circuits.

FIG. 2 shows a prior art exemplary method of physical synthesis.

FIG. 3 shows a flow chart of a method to design an integrated circuitaccording to one embodiment of the present invention.

FIG. 4 shows a flow chart of another method to design an integratedcircuit according to one embodiment of the present invention.

FIGS. 5A and 5B show details of a method to design an integrated circuitaccording to certain embodiments of the present invention.

FIG. 6 shows a flow chart of a method to design an integrated circuitaccording to one embodiment of the present invention.

FIG. 7 shows an exemplary estimation of shape and resources.

FIG. 8 shows an exemplary mapping for a resource type.

FIGS. 9A and 9B are exemplary mappings of a memory resource.

FIGS. 10A and 10B are exemplary resource sharing implementations.

FIG. 11 shows an example of an adder tree decomposition.

FIG. 12 shows an example of a gate tree decomposition.

FIGS. 13A and 13B show examples of a slicing optimization.

FIG. 14 shows an example of a replication optimization.

FIG. 15 shows an example of a Shannon expansion.

FIGS. 16A and 16B show examples of mux/pmux collapsing and timing drivendecomposition.

FIG. 17 shows a block diagram example of a data processing system whichmay be used with the present invention.

DETAILED DESCRIPTION

Methods and apparatuses for designing an integrated circuit or aplurality of integrated circuits are described herein. In the followingdescription, for purposes of explanation, numerous specific details areset forth in order to provide a thorough understanding of the presentinvention. It will be evident, however, to one skilled in the art thatthe present invention may be practiced without these specific details.In other instances, well-known structures, processes and devices areshown in block diagram form or are referred to in a summary manner inorder to provide an explanation without undue detail.

The present invention discloses methods and apparatuses to design anintegrated circuit which, in one embodiment, combines placement andsynthesis in a single pass. An embodiment of the present inventiondiscloses a physical synthesis process, termed Architectural PhysicalSynthesis, where the interaction between the synthesis and the placementoccurs in an architectural level. This allows synthesis to occur withactual physical placement on a representation of an integrated circuit'ssubstrate, providing synthesis with available local resources and delayestimations closely associated with the actual circuit timings from theplacement, and thus the interaction between synthesis and placement canbe considered simultaneously. Further, this can provide an automatedmethod to make high level architectural decisions, mapping high levelcomponents or making high level circuit transforms in a way that takesinto account placement, congestion estimates and the characteristics ofthe targeted chip architecture including but not limited to the physicaldistribution of diverse resources, component delays and interconnectdelays. According to one aspect of the present invention, it isrecognized that given a circuit design, or a HDL code representation,there are a large number of alternative implementations interlinkingsynthesis and placement, especially for an existing floor plan withgiven distributed resources. To achieve an optimum designimplementation, it is important to be able to back track an earliersynthesis decision based on currently available circuit data such astiming or power, gathered through placement.

Thus in an aspect of the present invention, placement is performed inearly synthesis cycles, for example, in circuit architectural level, inhigh level design or behavioral representation to allow accurateevaluation of the suitability of various design implementations. This isespecially important with prediffused chips such as FPGAs and structuredASICs where the resources are not distributed uniformly on the chip. Inprediffused chips, the locations of resources and resource types arepredetermined and distributed in a sparse fashion. For example, today'sFPGAs and Structured ASICs have introduced irregular layouts of chipresources. These components may contain logic, flip-flops, special I/Ocells like SERDES for high speed serial interconnect, a variety ofmemory components with different capacities and high speed arithmeticblocks to speed up DSP algorithms. Many FPGAs have a limited amount ofRAM, DSP, and other dedicated logic blocks arranged in sparse columns onthe chip. For example, DSP arithmetic blocks might be available in only2 columns in the chip layout.

In an aspect, the present invention addresses this change in chiparchitecture evolution to integrate physical placement and architectureselection at the beginning of the synthesis flow. This requirement canbe at the RTL level or at the behavioral synthesis level where thenumber of required resources of different types are being determined.

The current awareness of the resource layout information and theintegration of placement and synthesis at an early synthesis process(e.g. while many components of a design have not had an implementationselected) can provide an optimal utilization of resources. For example,an RTL synthesis process which is not aware of resource layoutinformation may result in an intermediate netlist which over uses someresource types while other resources types go underutilized.Furthermore, the resource type decisions may not be compatible with thephysical locations of the resources. For example, more DSP resources maybe required in a localized part of the chip than are available. Thepresent synthesis methodology can provide an efficient utilization ofthese resources by knowing about their distribution on the chip and toknow not just that there are enough of a particular resource, but thatthere are enough nearby. Thus large interconnect delays may be avoidedfrom routing signals to distantly placed resources.

According to an aspect of the present invention, various placementdecisions are determined while synthesis is still at a high levelcircuit representation (e.g. many components in a design may not yethave a selected implementation), or that a gate-level description isstill to be determined. These placement decisions may enable an accurateevaluation of circuit parameters, such as timing delay or powerconsumption, permitting an incremental path toward an optimum designimplementation. In an embodiment, as shown in FIG. 3, the process startswith an initial state of the IC design, which may comprise ESL or HDLlanguage, a behavioral abstraction, or a compiled HDL code to a highlevel abstraction of RTL netlist, plus timing, floorplan, power andplacement constraints in operation 30. In operation 31, a synthesistransform is performed, which, at an early stage of the process, wouldbe a high level transform. This synthesis transform may be for only aportion of the design. In operation 32, placement transforms isperformed on the existing circuit representation, and at an early stage,would be a placement at an architectural level. This placement transformmay only be for a portion of the design. The placement decisions at thisoperation might require various assumptions and estimations, sincedetailed information are likely to be missing at this early stage. Thereadiness of the IC design state is then evaluated in operation 34, andif it meet design and legal objectives, moves on to traditional physicalsynthesis in operation 48. If the objectives are not met, as is likelyat this early stage, it will loop back to another round of synthesis.

The next iteration of synthesis (current operation 31) would improve thedesign representation, especially after being provided with physicalplacement information (previous operation 32). And similarly, the nextiteration of placement (current operation 32) would improve itsestimation of circuit parameters after being provided with animprovement of synthesis. With such intimate loops, synthesis andplacement can work closely together to provide a path to an optimaldesign representation without significant rework.

In an embodiment, the synthesis operation provides variousimplementations for a circuit design representation, and the placementoperation can perform circuit parameter analysis to help narrow theoptions. For example, if implementation #1 is clearly superior, it wouldbe chosen, and narrowing the number of potential implementations to one.Alternatively, if implementation #2 is clearly outside the scopes of thedesign constraints, it would be eliminated, narrowing the number ofpotential implementations by one.

According to one aspect of the present invention, an exemplary methodfor designing a plurality of integrated circuits presents an integrated,interactive and iterative synthesis and placement from an abstractmachine specification. In an embodiment, the exemplary method ofdesigning integrated circuits incrementally changes the state of the ICdesign. Starting from an initial state of IC design, which comprises ESLor HDL language, a behavioral abstraction, or a compiled HDL code to ahigh level abstraction of RTL netlist, plus timing, floorplan, power andplacement constraints, the exemplary method iteratively changes the ICdesign state incrementally until an optimized design state is reached.The optimized state is preferably a chip primitive level netlistsatisfying the timing and placement constraints, which can then bepassed to a traditional placement and routing process without anyextensive re-works.

According to one aspect, the present invention discloses an iterativeprocess of synthesis and placement where each iteration providesincremental changes on the design of the integrated circuit. A generalexample of certain embodiments of the present invention will be providedwhile referring to FIG. 4. The method of FIG. 4 begins in operation 40where an initial state of an IC design is generated. The initial stateof the IC design comprises a behavioral representation, or high levelRTL netlist, which can be compiled from a HDL source code whichdescribes the circuitry and logic.

The technology independent RTL netlist is typically a higher levelbehavioral representation of the design. This conserves abstractedinformation for use by processes before the final mapping step. Thisdiffers from traditional synthesis tools that fragment designs intofine, low level (gate) representations immediately after doing languagecompilation. By preserving a higher level behavioral representation, asynthesis tool can perform optimization, partitioning and floor planningat a much more global level and typically deliver better results. Byoperating on abstracted data, the synthesis tool can also operate morequickly and handle larger designs. The high level RTL netlist containshigh level of abstraction, such as circuit block representation,independent of any particular vendor technology or architecture.

The initial state of the IC design further includes timing constraints,power constraints, and placement constraints, such as IO pin locations,existing floorplan or existing placement (e.g. size and shape of the ICchip, IP blocks). In operation 42, the state of the IC design isincrementally changed. The state of the design of the integrated circuitgenerally comprises a netlist, timing data, resource information,placement information, routing information, and power data. Theincremental changes in the design state can be synthesis or placementmodifications, and will be described further below. In one aspect of theinvention, the changes are incremental, meaning the design optimizationsproceed typically with small modifications with all current informationsuch as timing estimations and placement constraints. The incrementalchanges allow the design to progress in full confidence that progress issteadily made. In one aspect, the incremental changes involve anincremental global placement algorithm such as the force directedmethod. In another aspect, the incremental changes involve globaloptimization algorithm such as simulated annealing. In operation 44, thestate of the IC design is evaluated, and a decision is made in operation46 whether to continue with further iteration by going back to operation42, or to complete the design flow in operation 48.

The present circuit design method provides a highly integrated andinteractive process between the two basic steps in the design ofintegrated circuits, which are synthesis and physical design (e.g.placement and routing). With the concept that synthesis and placementare strongly interdependent, since design constraints cannot beestimated accurately in synthesis without placement, and placementcannot be performed without synthesis, the present invention designmethod effectively merges synthesis and placement into one step processwith the incrementally iterative approach.

In an embodiment, the present method provides an iteration ofsynthesis/placement transforms. The body of the iteration process can bea placement transform, a synthesis transform, or a combination ofsynthesis and placement transforms. In either case, the state of thedesign of the integrated circuit is incrementally and iterativelychanges toward the synthesis or placement of a chip primitive levelnetlist which meets the design objectives. FIGS. 5A and 5B show twoexamples of a portion of a flow for designing an IC; in the case of themethod shown in FIG. 5A, a placement transform occurs first followed bya synthesis transform while the reverse happens in FIG. 5B. Theincremental and iterative transforms of synthesis, placement orsynthesis/placement provide a continuous interaction between synthesisand placement at any state of the design. The incremental and iterativeprogress of synthesis and placement assures that the synthesis transformalways have the latest and most accurate design state information, whichincludes delay information and local resource availability from theplacement transform, and where the placement transforms always providesthe best estimates for physical placement and wiring information basedon the latest synthesized netlist. Placement and synthesis transformscontinue until the netlist is composed only of chip level primitives,the design objective are met, and placement congestion is reduced to alevel where a detail placer can easily legalize any small local regionindependently. This flow can be followed by a traditional physicalsynthesis flow to complete implementation.

FIG. 6 shows an embodiment of the present invention for the incrementalchanges of the IC design state. The present invention can place alllevels of abstraction simultaneously. During early iterations, objectsat higher levels of abstraction are more prevalent than in the lateriterations where the design consists mostly of chip primitives. The chipprimitive instances are typically the lowest level of representation.Synthesis transforms gradually modify the netlist, changing the objectsat a higher level of abstraction to more concrete objects. Theseconcrete objects have more specific resource requirements which are thentaken into account in following synthesis and placement transforms.Placement transforms determine the locations of netlist instances,either RTL instances, unmapped instances, mapped instances, or chipprimitive level instances, thereby determining along with the router,the lengths and the delays of the nets in the circuits. The placementtransform can gradually iterate the circuit placement toward a legalplacement, where legal placement means meeting the rules governing theresource usage of the IC chip. Typically in the early iterations, theplacement will be far from legal. Since the placement transform makesincremental changes in object locations, single iterations of theplacement transform will not create in a legal placement. It is throughrepeated placement transforms that the placement will become legal. Inthis embodiment, the placement transform is central to the presentelectronic design automation.

In each iteration, the criteria for an iteration can be the timing data,congestion per resource layer, area utilization, power level, or anycombination thereof. The method can further comprise a possible innerloop iteration to optimize the design, to shape the critical paths, orto spread the resources to a predetermined threshold.

With an embodiment of the present invention method of incrementaliteration of synthesis and placement transforms, physical designinformation is always available in synthesis transforms in all stages ofthe design. Thus the optimizations and transformations in the synthesisare always up-to-date on the timing and area, and also on the impact onroutability. Decisions regarding the circuit structure made in synthesisare fully in concert with the placement.

The present invention method of incremental iteration of synthesis andplacement transforms effectively combines the synthesis and placementtransforms to simultaneously optimize the logical structure as well thespatial placement of a circuit. In a typical example of this method, thestate of the design of the integrated circuit progresses incrementallytoward the final circuit specification and layout.

The progress of the iterative placement transform can be an increasinglevel of maturity of the netlist or a placement configuration. Thematurity of a design is measured by the degree to which the netlist iscomposed only of chip level primitives, design objective are met, andplacement congestion is reduced to a level where a detail placer caneasily legalize any small local region independently.

The progress of the iterative synthesis transform can be a synthesisoptimization such as restructuring or replication of objects orinstances to meet timing constraints. Synthesis optimizations includebut are not limited to a circuit optimization, an abstract componentdecomposition, an arithmetic mapping, an undo/do resource sharing, anadder tree decomposition, an and/or gate decomposition based onplacement, path replication, a path detour removal, an assignment todiscrete resources such as RAMs or DSPs, a logic factorization,multiplexer restructuring, or a flattening of a netlist to facilitateoptimization across the hierarchy.

The embodiment of this method is shown in FIG. 6, which begins with anoperation 61 where an initial state of the IC design is generated. Thestate of the IC design can be a RTL netlist with associated stateinformation such as timing data, resource information, placementinformation, routing information, and/or power data. Typically, thestate of the IC design contains enough information to specify thecircuit requirements, such as functionality, timing, power, andfloorplan.

High level RTL netlist comprises a netlist of where most of the objectsare abstractions of the low level chip primitives. Groups of associatedprimitives can be represented as objects with higher level ofrepresentation, which represent functionality encoded by the RTL. Thehigh-level or abstract representations of the integrated circuit designcan be logic objects, representing RTL code or portions thereof. Eachobject typically represents multiple chip primitives, for example morecomplex functions such as adders, multipliers, multiplexers, andsequential logic as well as AND functions, OR functions. Objects of highlevel representations can also include memory blocks or proprietary(intellectual property blocks or IP) blocks. Other logic objects can beportions of RTL code to provide support functions, such as glue logic(providing buffers or interfacing functions), timing logic, controllogic, or memory logic. Some of high level RTL objects may also be chiplevel primitives. The netlist of objects also includes informationassociated with each object for wiring and placement. The objects caninclude information to map back to the corresponding RTL code.

Further, RTL code can contain hierarchies, where functions are groupedtogether. In some situations, components can be re-grouped from onehierarchy to another in order to optimize timing, routing, area, orpower requirements. In other situations, functional RTL hierarchy can beflattened, in whole or in part, during the incremental iterativeprocess.

In the beginning, the initial state of the design can compriseconstraints, such as timing constraints, power constraints, and/orplacement constraints. For example, placement constraints can includelocations of IO pins, existing floorplan or existing placement data.

In exemplary embodiments, the initial state of the design is firstoptimized by a series of neutral optimizations based on timing. Theneutral optimizations include any area recovery that can be undoneeasily, for example, undo/do resource sharing; adder tree decompositionbased on fan-out table timing; obvious resource refinements, forexample, if there is a huge RAM in the design and there is only one RAMblock resource available, the RAM has to go there; flattening of thenetlist to facilitate optimizations across hierarchy; and extraction andrestructuring of multiplexer structures.

A next transform is selected in operation 62 based on the current designstate (the current placement, netlist, resources, timing, power, androuting) to incrementally change the state of the IC design. Operations63-70 are typical transforms according to an embodiment of the presentinvention, comprising placement or update placement (63), assignresources (64), factorize (65), map (66), optimize logic (67),create/refine implementation (68) update routing (69) and othersynthesis (70). The transforms are typically small, incrementaloperations to permit the seamless integration of placement andsynthesis, as such, synthesis is performed with knowledge of placement,and placement is performed with knowledge of synthesis.

The iterative and incremental transforms 63-70 thus comprise placementand synthesis operations, including optimization transforms such asundo/do resource sharing, adder tree decomposition, AND/OR gatedecomposition, logic replication, bit splicing, detour removal,factorization, and placement transforms such as assignment to discreteresources (RAM, DSP, etc.), and routing.

In exemplary embodiments, at each iteration, Operation 62, variouspotential transforms are evaluated based on a cost function. The costfunction is designed to select the best transform to operate first, andtherefore includes design state information such as timing, placementcongestion, routing congestion, area utilization and power. Upon theevaluation, the best transform is performed and the iteration continuesuntil the design constraints are satisfied. In one aspect, the designthen can proceed to traditional gate level placement and routing.

At each iteration, the method runs through a list of selections, andselects the best transform based on a cost function. For example, thechoice between a placement transform and a synthesis transform is basedon a timing convergence criterion. On a critical path, the placement canattempt to shorten critical nets, if possible. If critical nets cannotbe shortened, the nets are available for physical synthesisoptimizations.

According to another aspect of the present invention, an exemplarymethod for designing integrated circuits provides an iteration oftransforms where the synthesis and placement transforms are not in anyorder, but only selected for their functionality. The method providesgood integration between synthesis and placement where within theiteration, the next transform is selected based on the state of thedesign of the integrated circuit, to progress toward the finalconfiguration with timing and placement constraints. In an embodiment,the method provides a transform selection algorithm where the nexttransform is selected based on certain criteria such as timing,congestion per resource layer, area utilization, and power. The nexttransform can be an update of placement where the circuit will undergoan iteration to make placement changes for the current netlist with lessresource congestion or better meets design objectives. The nexttransform can be a synthesis optimization, such as a factorization, anoptimization, or a decomposition. The next transform can be a synthesisoptimization such as splitting, restructuring or replication to meettiming or critical path requirements. The next transform can besynthesis where the current netlist can be mapped into lower level ofabstraction, toward chip primitive level netlist for finalize thecircuit specification and layout, or updating routing.

The next transform can be a placement optimization such as floorplanpartitioning, resource assignment, logic restructuring or replication tomeet timing or critical path requirements, or updating routing for theinstance placement. The next transform can be a synthesis operationwhere the current netlist can be mapped into lower level of abstraction,toward a chip primitive level netlist to finalize the circuitspecification and layout.

With incremental transforms, design state information, such as timingand power, is up-to-date, and therefore optimizations can be performedwith an accurate view of the impact on objectives.

In an alternative embodiment, several transforms are selected. Eachselected transform is then applied to measure the impact on the designstate and reverted or undone. The best transform is then selected andapplied.

In an embodiment, a key step of the present invention is operation 68which for each RTL object in the netlist creates or refines possibleimplementation choices. An associated function performs the estimationof the shape and resources required for each of the implementationalternatives. In another embodiment, Operation 68 can also assignweights to each implementation, indicating preferred implementations.One key advantage of the present invention which incorporates synthesisand placement at an architectural level, is that it allows theevaluation of different architectural implementations. Without thepresent architectural physical synthesis, once an implementation ischosen in the RTL synthesis stage, at the gate level placement stage, itwill not be possible to recover the high level information. This couldresult in sub-optimality if the other implementation would have beenpreferred. Therefore, much better timing results can be attained ifimplementation decisions are done at RTL level with the physicalinformation. This transformation is very difficult to perform once thecircuit has been mapped for the place and route stage.

As iterations proceed and the design state refines, Operation 68eliminates implementation choices with inferior properties. The exampleof the function F, implementing, F=S & (A*C)∥˜S & (B*C) will be used toexplain Operation 68. If the select signal S is 1, then F is the resultof multiplying A and C, while if S is 0 then F is the result ofmultiplying B and C. Operation 68 determines possible implementationalternatives for this function. FIGS. 10A and 10B illustrate twopossible implementation alternatives which the Create/RefineImplementation operation may create for this function. FIG. 10A shows animplementation utilizing two multipliers and a multiplexer which mightbe desirable if the output F is timing critical and the select signal Shas the latest arrival time. FIG. 10B shows an implementation utilizinga single multiplier and multiplexer which would be more desirable ifinput C is the latest arriving signal or if output F is not timingcritical and area reduction is desired. These two alternativesillustrate resource sharing/unsharing. Without concrete informationabout the timing and placement of the function, a typical high levelsynthesis algorithm would typically not evaluate an alternative such asFIG. 10A since it uses resources for two very expensive multipliers.This would be the case even in the case where the traditional flow'splacement places this function nearby dedicated unutilized multiplierresources, with its output critical and the select signal S arrivingafter A, B, and C. In this invention, Operation 68 will create both ofthese implementations, and possibly others, eliminating alternativeswhen it is clear they are sub par. For example, as iterations proceed,it may become clear that the output F is not critical. In this case,Operation 68 would refine the implementation choice to only that of FIG.10B since this alternative uses fewer resources. Alternatively,Operation 68 might eliminate the implementation in FIG. 10B if F and theselect line S are critical and there are nearby available resources toimplement the multipliers.

FPGA chips typically have a plurality of prediffused memory resources,such as flip-flops, and blocks of varying bit sizes, such as 512, 4 K,and MRAMs. The memory components required by a design also vary in size.Typically it is not clear how these memory components should beimplemented. For example a moderately sized RAM of between two and 512bits could be implemented with flip-flops, a 512 resource or even a 4 kresource. Moreover, the resource sites for larger memory sizes aretypically only available sparsely on the chip. In previous EDA tools,placement information was not available at the memory implementationstage. Therefore implementation decisions were made without local usageand accurate timing information. This limitation can result in seriousperformance degradation. If the moderately sized RAM is implemented as a512 resource and the only available 512 site is located far from thelogic to which the RAM connects, forcing the RAM to be a 512 will resultin a long interconnect and invalidate the delay benefit of using a 512site over a flip-flow implementation. Even though the delay of animplementation which uses flip-flops might be longer, if thisimplementation allows in shorter interconnect between the flip-flops ofthe RAM and the logic to which the RAM connects, it might result in afaster design. Alternatively, if there is an available 4 K resourcenearby the RAM's connecting logic, implementing as 4 K might beadvantageous. Thus memory implementation decisions should be made withinthe consideration of the various available memory resources and thelocation of components connecting to memory.

FIG. 9A illustrated an example of a memory implementation decision. Thefigure shows an exemplary chip with memory resources at the top andbottom of the chip. A 4 bit RAM is connected to a Pad on the right sideof the chip and an AND gate. If the RAM is implemented as memory andplaced at the top of the chip, it can result in very long interconnectsto its Pad input as well as to the AND gate it drives. FIG. 9B shows analternate mapping of the same logic. The RAM is implemented using nearbylogic and as a result, much shorter interconnect and delay.

Closely associated with Operation 68 is a function which estimates theshape and resources required for an implementation. In one embodiment,this function performs a mapping for the purpose of estimation theresources for the RTL component. In another embodiment, this mapping isspecific to the target chip architecture. These resource estimates arebased upon a synthesis which is designed to estimate the logicrequirements and input/output requirements of the particular componentin order to implement the module in the target architecture. Further, inone embodiment, the function also estimates the timing transitions forthe component.

FIG. 7 illustrates an example of an adder which adds two buses, A[31:0]and B[31:0], to produce a third bus O[31:0]. The logic area required toimplement the adder is estimated through a transform, estimating theimplementation, determining the required resources and the internaltransition delays from its inputs to its outputs. In certain aspects,for example, the adder can be implemented using two logic array blocks(LAB), each consisting of 16 look-up tables (LUT).

Operations 65-67 and operation 70 are exemplary synthesis transforms,for example, logic factorization (operation 65), logic mapping(operation 66), logic optimization (operation 67), and abstraction(operation 70) in which the components and connections represented bythe RTL netlist are modified resulting in a functionally equivalentcircuit which improves the design state, e.g. timing, power. Thesetransforms may add or remove components as well as theirinterconnections. Transform examples include performing a replication ofcomponents, or splitting a unitary RTL component.

The exemplary embodiment represents a very simple case of a very largeclass of implementation choices that are exist for I/O, memories ofdifferent sizes, CPUs, and DSP. Different designs may want to use theseresources in differing manners. The present invention's abstractiontransform, operation 70, is able to change implementation depending onthe timing information, location of connected components, utilization ofeach resource type, and routing utilization. The abstraction transformis analogous to the create/refine transform, operation 68. Whileoperation 68 creates a plurality of alternate implementations which aremaintained and evaluated in future iterations, the abstractionoperation, instead, abstracts from a more detailed implementations to anabstraction component. Various implementations of the abstractedcomponent are considered and the best implementation is chosen toreplace the original implementation. This ability avoids thealternative, which is to enumerate all of the possible architecturalmapping choices and running all of these through mapping, placement androuting.

An example of the abstraction transform is given in FIG. 11, showing anadder tree decomposition operation. The adder tree decomposition breaksan n input adder into an m input adder tree. Without delay informationderived from placement, this optimization would not have informationabout where the inputs to the adder where located and could only formthe tree based on a rough estimate of the input arrival times. In theexample, if all inputs are coming from registers, they have roughly thesame arrival time. The decomposition will pick (a, b), (c, d) and (e, f)combination for the leaf nodes. However, inputs b and d, a and c may beplaced close together. With the placement information, it is better topick (a, c), (b, d), (e, f) combination for the leaf nodes. This willyield much better timing at the output.

Another abstraction example of gate tree decomposition is shown in FIG.12. A critical step in a synthesis flow is the decomposition of a largegate, with many inputs, such as a 32 input AND gate, into a treerepresentation. This stage is usually performed once early in the flowand the decision on the tree decomposition does not include anyinformation on the location of the drivers of the large gate. Thepresent invention includes gate tree decomposition and re-composition astransforms, which are placement and timing aware. The least criticalearliest arriving inputs are put at the leaf level of the tree andgrouped with other nearby less critical inputs. When timing is not afactor, input signals are grouped by the location of the signal'sdriver.

The optimize logic transform, operation 67 changes the netlist tooptimize for design objectives such as timing or power. An example ofthe optimize transform is the slicing operation as shown in FIG. 13A. Ifthe inputs or outputs of a wide primitive are far apart it can beadvantageous to split the primitive. This optimization can only beperformed base on placement information. The example below shows a caseof this for a 2 bit memory, a[1:0] whose outputs are very far apart.This memory can be split into two flip flops which then can be placedvery close to their outputs.

In another example, a component is divided based on the location of itsfan-our or fan-in signals. For example, example shown in FIG. 13B showsa memory that has been broken into three clusters based on the locationof the fan-out of the memory. Thus the original component, shown as asingle box, has been divided to create three new components, slicedaccordingly to its corresponding load. Similar divisions can be appliedbased on the input signals of a component. This optimization is generaland not limited to memories.

Another exemplary operation is the logic replication as shown in FIG.14. The conditions for replication are very similar to splitting. For acomponent with inputs or outputs far apart it can be advantageous tomake a copy of the component and place it close to a critical load. Thisoptimization can only be performed base on placement information. Theexample below shows a case of this for a component, a, whose outputs arevery far apart. It can be split into two instances a_1 and a_2 whichthen can be placed very close to their outputs. This is very common whenfan-out of the driver is high. Only one copy of the instance ispreserved within a given physical range.

Another exemplary operation is the Shannon Expansion, shown in FIG. 15.For logic at the input cone of an RTL element with a large delay, suchas an adder or a multiplier, critical input nets can be “pulled ahead”to improve timing. The logic is replicated and the critical net isreplaced with constant inputs, 0 and 1, and a mux is used to select theoutput of the two operators with the critical net selecting whichoperator copy is the output. The two logic copies can be furthersimplified based on the constant inputs. Again, this is an optimizationthat is best performed with knowledge of the location of the logic andthe drivers of the critical nets driving the logic.

Yet another exemplary operation is the Mux/PMux (A PMux is defined as amux with a one-hot encoded select) Collapsing and Timing DrivenDecomposition, shown in FIGS. 16A and 16B. Large Muxes are very commonin commercial circuits. Decomposing a mux is similar to the previouslymentioned Adder tree and And/Or tree decomposition, but the select logicmakes Mux decomposition more difficult, since moving a late arrivinginput within the tree impacts not only the tree structure, but also theselect logic. As with the other decompositions, the present inventionincludes timing information based on placement and routing to determinethe proper decomposition.

Operation 69 is updating routing. The present incremental iterativemethod provides good routability for the integrated circuit to improvethe performance, noise sensitivity, yield, area, and power of thedesign. The incremental iterative process can gradually improve thewiring congestion on the chip, which the density of wiring resourcesrequired per unit area.

Many of the transforms mentioned have impact on the power consumed bythe FPGA. For example, the manner in which a memory is decomposed(column form versus row) impacts the power it consumes. A rowdecomposition uses less power but requires additional multiplexing whichintroduces additional delay. The determination of a row versus columndecomposition for optimizing power consumption can be performed in thepresent invention because with the present intimate connection betweensynthesis and placement, accurate delay information is available.

Operation 63 is a placement transform, or an update placement transform.The placement transform modifies the location of netlist instances suchas RTL objects, unmapped instances or chip primitive level instances,and thereby determines, along with the router operation, the lengths andthe delays of the nets in the circuits.

The placement transform can use various placement methods depending onthe maturity of the netlist and the placement. In exemplary embodiments,the present placer employs incremental algorithms. An incrementalalgorithm is one which, in response to a small change in input, producesincremental changes in algorithm outputs. For example, global placementsuch as force directed placement can be used for placing less maturednetlist and placement. The Force Directed Placement (FDP) method is oneof the preferred choices for global placement in the present inventionbecause it is an incremental method, where an iteration of FDP generatesincremental placement changes. Typically, FDP uses a quadraticprogramming technique to model the nets and to determine how instanceswhich are overlapping should be spread.

In an embodiment, the first step FDP is the solving of an unconstrainedQuadratic Programming problem, which models only the netsinterconnecting the instances. This initial solution usually has veryhigh congestion. FDP then iteratively constructs spreading forces tomove instances from areas of over-congestion (high instance usage) toareas of under-congestion (high resource availability). It is the natureof these iterative steps that make FDP an incremental algorithm. Changesto the netlist or other design state data can be made between thesesiterations. When these state changes are incremental, the resultantchange in FDP should also be incremental over what it would have been ifthe design state changes not been made.

There are various algorithms of FDP, but all share the basic concept ofcalculating the direction an instance should be move to resolve areas ofovercongestion. In a given placement, the instances connected by a netare assumed to exert an attractive force on each other, proportional tothe quadratic distance between the instances. In this previous work, allinstances on repel each other and are attracted to all placement sites,even if the site's is not appropriate for the instance. Instances arethen moved until the system achieves equilibrium in a minimum energystate. The FDP method is thus based on moving the instances in thedirection of the total force exerted on them.

In one aspect, the present invention provides novel heterogeneousresource placement to address the heterogeneous resources from manymodem reprogrammable chips and some ASIC design flows. For example, mostPGA have various pre-defined chip resources such as IOs, DSPs, RAMs,LUTs, FFs, etc. which are available only at specific sites. Thesepre-defined resources are a result of prediffused nature of FPGA chips.Each resource site has a limit on the number of instances which may beplaced at the site. For example, for the Altera Stratix-II chip, 16 orless LUTs and FFs may be place at a LAB site, and there are 3 distinctRAM sites holding 512 bytes, 4 K bytes, and 64 K bytes

In exemplary embodiments, the present incrementally placement addressesheterogeneous resource problem. In FPGAs, structured ASIC, and some ASICchips, resources may only be placed in certain sites which often are notdistributed evenly over the placement area. Most global placers,including all previous FDP, have assumed homogeneous resources, whereany instance, irrespective of its type, can be placed at any valid areawithin the chip boundary. This previous approach simplifies theplacement problem, as all instances can be treated as simple rectilinearobjects, and as long as these objects do not overlap and are placedinside the chip boundary, the placement will be legal. This simplerectangle model may allow instances of a certain type to be placed in aneighborhood with inadequate resources. This assumption neglects thatfor the heterogeneous resources, each resource has a specific set ofsites in which instances must be placed. While this “combined” placementmight not have any overlaps, when the actual resource types whereconsidered, the placement might be far from legal. Some previous work inSimulated Annealing placers has taken resource information into account,but these placers have only been employed to place static mappednetlists, not RTL objects. Further, simulated annealing was used formuch smaller designs and becomes difficult for large designs due toruntime.

In one aspect, the present invention models each distinct resource sitesseparately, so that in all placement transforms, the resourcerequirements are optimized by the placer. In one aspect, the presentinvention models an arbitrary number of site types, called “layers.”These layers are used to determine the spreading force on each instance.In an embodiment, the layers are created in the initialization phases. Alayer is created for each resource type which exists on the chip. Theresources sites of a layer are recorded in the layer's supplydistribution at their location. A distribution is a matrix like,2-dimensional data structure with a value at location that gives thevalue of the supply at the location.

Each instance is assigned to the layer(s) for which it consumesresources. The instances which consume a single resource type are calledprimitive instances, and ones which consume multiple resources,non-primitives. An example of a non-primitive would be a state machine,which consumes both LUT and FF site types. The resources utilized byeach instance assigned to a layer are recorded in the layers usagedistribution. The present method provides for non-primitives, handled byrecording their area on all of the layers for which they have resources.These usage contributions will, in turn, impact the force computationsfor each of the non-primitive's layers.

For a layer, the difference between its usage and supply distributionsis the congestion distribution for that layer. As with previous FDPmethods, this congestion distribution is used to compute forces for eachinstance on the layer.

The force for a non-primitive instance is computed by taking a weightedaverage of the forces from each of its resource layers or based on localcongestion of those resources. The weighting applied to each layer canbe a uniform weighting or a weighting which depends on the relativediscreteness of the layer's resources. The discreteness of resources canbe characterized by how far apart the resources are located, how sparsethe resources are, or how uniform or non-uniform the resources aredistributed.

In an embodiment, the force for a component with multiple possibleimplementations is computed similarly to the case of non-primitiveinstances. The force is computed by taking the weighted average of theforces from each of its implementation's resource layers. The weightingapplied to each implementation's resources can be a uniform weighting ora weighting which depends on the probability that the givenimplementation will be chosen.

An advantage of the present invention is that an instance's forcesdepend only on other instances which use the same resource type, andresource supply for that type. For example, if instances A and B eachhas a portion using a resource C, then the force on the instance A (oron the portion of instance A using the resource C) depends on theportion of the instance B which uses the resource C, and also depends onthe resource C which is available for placement. Instances on differentlayers, do not impact the spreading force of each other.

In one aspect, when the global placer terminates, each instance will beeither at or near a valid site appropriate for its type so the placementmay be legalized with little movement. This approach is novel ascompared to previous FDP, which required that all instances be modeledas a single type and all resource areas were combined and the instanceswere then spread over the combined area.

In exemplary embodiments, the present invention architectural physicalsynthesis can provide improvement to resource utilization problem. It isoften the case that chip resources exceed the requirements of thecircuit. For example, in an FPGA design, the circuit to be implementedmay require 150 LUTS when the chip or part it is implemented in has 256LUTS. This problem is called the resource utilization problem. When theresource utilization problem is ignored, placers typically spread thecircuit instances evenly over available resources, even though a betterresult may be achieved by a placement with varying densities over theresources. Previous placers have either ignored this problem or insertedextra “filler” instances. Filler instances are extra instances with noconnectivity which are added to the circuit. The use of “filler”instances is also problematic as locations must be determined for theseinstances.

In exemplary embodiments, the present invention employs an area removalmethod to solve the resource utilization problem. As with forcegeneration, each resource layer is considered separately. In the arearemoval method, the resources are utilized based on their quality withlow-quality resources removed. A quality metric is first determined, andthen the resource supply is analyzed to determine a ranking of theresources based on their quality. These low quality portions are thenremoved from consideration as placement sites by the placer. Sincechanges in placement influence the quality of the resources, the rankingand removal may be performed many times during the placement process.The process is thus well suited to the present invention's iterative andincremental improvement of the design state.

In an embodiment, the quality metric which is used to form the rankingis based on the resource's distance from usage. A byproduct of onemethod of computing forces is the convolution of the layer's densitydistribution with a Green function. The result of this convolution canbe viewed as a topological map where the higher points indicate a demandfor resources and the lower points represent the lack of demand. Sincethe distribution is composed of discrete boxes, these boxes can besorted based on the convolution result. The resources to be removed canthen be determined by traversing the supply and removing resourcesstarting the resource with the lowest value in the convolution sortedorder until the required resources are removed. In an aspect, the methodcan leave enough resources so that there is enough resources to meet theinstance demand on that layer and so that the chip will be routable.

Alternatively, in other exemplary embodiments, the present inventionemploys a force range method to solve the resource utilization problem.In the force range method, the force acting on each instance is aweighted average of the forces from a plurality of force ranges. In anaspect, the short range weighted factor is proportional to the densityof the instance in the short range region where a high local densityresulted in a high force. This proportionality thus can enhance instancespreading to reduce overlap.

With the force ranges method, the force applied to an instance dependson the instance density in the neighborhood of the instance. The generalidea is that an instance's spreading force should depend on the areaneeded to legalize the instances in its neighborhood. In the mostextreme congested case where all instances are overlapping in a smallneighborhood, the forces on each instance will be computed based onlocations of all instances and all resources. In the least congestedcase, where an instance has no other instances in its vicinity, and issitting directly on a resource, the instance will not have any force.For the cases in between these two extremes, the force depends oninstances and resources in the area required to legalize the instance.

In an embodiment, the range of the force can be sectioned into local,medium and long range forces. In other embodiment, more or less forceranges could be used. In general, it is a trade-off with computationaland memory resources to determine the legalization area for aneighborhood and the forces for each legalization range. In an aspect,the forces are computed by changing the size of the Green's function.The long range Green's function covers the whole placement area; thesmall Green's function covers a circular area with a radius of, forexample, five times the average instance area; and the medium rangeGreen's function has a radius of, for example, 10 times the averageinstance area. The force on an instance is the weighted sum of theinstance's local, medium, and long range forces. The weights applied aredetermined by the density in the neighborhood of the instance. It theneighborhood is very dense, then the long range force will have a veryhigh weight and the local weight will be 0. An instance in a low densityarea will have a zero long range weight, and a high local weight.

Another aspect of the present method is the ability to determineimportant architectural decisions that determine which resources shouldbe used in implementing an architectural construct. At the architecturallevel there are many decisions such as, on an FPGA, whether a small RAMshould be mapped to 512 bit RAM resources or 4 kbit RAM resources. Otherexamples included the decision of multiplier implementation and thepreviously stated cases such as adder tree decomposition. The presentinvention, though, is not limited to these specific examples. With theavailability of placement information, the present invention refinesimportant architectural implementation decisions that satisfy the designobjectives. An exemplary example is the case where a 1 kbit memory maybe assigned to either two 512 bit resources or a single 4 kbit resource.This implementation can be very critical to a successful implementationif the logic that the 1 kbit memory is connected to is located veryclosely to either 512 bit or 4 kbit sites. In the case where the 1 kmemory's connecting logic is very close to 512 bit resources, and the 4kbit resources are more distant, a non-optimal mapping to 4 k resourceswill result in a substantially lower performing circuit. The use ofplacement information to make this and other architectural decision isimportant.

In exemplary embodiment, the implementation refinement is handled byincluding a portion of the area of the flexible layer instance in theusage for each the layers that the instance may be mapped to. In thecase of our 1 kbit example, the instance's area would be partiallyincluded in both the 512 layer and the 4 k layer. The force on theinstance is determined either by taking a weighted sum of the forces forits potential layers or taking the force with least magnitude. Therational behind taking the force with the least magnitude is that thelayer associated with this force should have a lower neighborhooddensity.

In other exemplary embodiment, the resource implementation starts by notincluding the instances which have multiple possible resourceimplementations into in any layer's usage. After the area removaloperation has been performed for all layers, these flexibleimplementation instances are considered. For a flexible implementationinstance, the potential supply of each of its possible layers isconsidered. The potential supply is the area removed from the fullsupply by the area removal operation. The potential supply on each ofthe implementation layers are examined to determine which layer hasremoved area that would be least disruptive if the instance was placedin this removed area. The instance is then assigned to that leastdisruptive layer.

The assign resources transform (operation 64) is responsible fordetermining the assignment of an instance to its specific chipresources. Various placement algorithms can be used for this operationincluding force directed placement, simulated annealing, Mongrel,min-cut placement, placement by numerical optimization, evolution-basedplacement, and other detail placement algorithms.

While most embodiments of the present invention are intended for use inan HDL design synthesis software program, the invention is notnecessarily limited to such use. Although use of other languages andcomputer programs is possible (e.g. a computer program may be written todescribe hardware and thus be considered an expression in an HDL and maybe compiled or the invention, in some embodiments, may allocate andreallocate a logic representation, e.g. a netlist, which was createdwithout the use of an HDL), embodiments of the present invention will bedescribed in the context of use in HDL synthesis systems, andparticularly those designed for use with integrated circuits which havevendor-specific technology/architectures. As is well known, the targetarchitecture is typically determined by a supplier of programmable ICs.An example of a target architecture is the programmable lookup tables(LUTS) and associated logic of the integrated circuits which are fieldprogrammable gate arrays from Xilinx, Inc. of San Jose, Calif. Otherexamples of target architecture/technology include those well knownarchitectures in field programmable gate arrays and complex programmablelogic devices from vendors such as Altera, Lucent Technology, AdvancedMicro Devices, and Lattice Semiconductor. For certain embodiments, thepresent invention may also be employed with application-specificintegrated circuits (ASICs).

One embodiment of the present invention may be a circuit design andsynthesis computer aided design software that is implemented as acomputer program which is stored in a machine readable media, such as aCD ROM or a magnetic hard disk or an optical disk or various otheralternative storage devices. Further, many of the methods of the presentinvention may be performed with a digital processing system, such as aconventional, general purpose computer system. Special purpose computerswhich are designed or programmed to perform only one function may alsobe used.

FIG. 17 shows one example of a typical computer system which may be usedwith the present invention. The computer system is used to perform logicsynthesis of a design that is described in an HDL code. Note that whileFIG. 17 illustrates various components of a computer system, it is notintended to represent any particular architecture or manner ofinterconnecting the components as such details are not germane to thepresent invention. It should be noted that the architecture of FIG. 17is provided for purposes of illustration only and that a computer systemor other digital processing system used in conjunction with the presentinvention is not limited to this specific architecture. It will also beappreciated that network computers and other data processing systemswhich have fewer components or perhaps more components may also be usedwith the present invention. The computer system of FIG. 17 may, forexample, be an Apple Macintosh computer.

As shown in FIG. 17, the computer system 101, which is a form of a dataprocessing system, includes a bus 102 which is coupled to amicroprocessor 103 and a ROM 107 and volatile RAM 105 and a non-volatilememory 106. The microprocessor 103, which may be a microprocessor fromIntel or Motorola, Inc. or IBM, is coupled to cache memory 104. The bus102 interconnects these various components together and alsointerconnects these components 103, 107, 105, and 106 to a displaycontroller and display device 108 and to peripheral devices such asinput/output (I/O) devices which may be mice, keyboards, modems, networkinterfaces, printers, scanners, video cameras and other devices whichare well known in the art. Typically, the input/output devices 110 arecoupled to the system through input/output controllers 109. The volatileRAM 105 is typically implemented as dynamic RAM (DRAM) which requirespower continually in order to refresh or maintain the data in thememory. The non-volatile memory 106 is typically a magnetic hard driveor a magnetic optical drive or an optical drive or a DVD RAM or othertype of memory systems which maintain data even after power is removedfrom the system. Typically, the non-volatile memory will also be arandom access memory although this is not required. While FIG. 17 showsthat the non-volatile memory is a local device coupled directly to therest of the components in the data processing system, it will beappreciated that the present invention may utilize a non-volatile memorywhich is remote from the system, such as a network storage device whichis coupled to the data processing system through a network interfacesuch as a modem or Ethernet interface. The bus 102 may include one ormore buses connected to each other through various bridges, controllersand/or adapters as is well known in the art. In one embodiment the I/Ocontroller 109 includes a USB (Universal Serial Bus) adapter forcontrolling USB peripherals, and/or an IEEE-1394 bus adapter forcontrolling IEEE-1394 peripherals.

It will be apparent from this description that aspects of the presentinvention may be embodied, at least in part, in software. That is, thetechniques may be carried out in a computer system or other dataprocessing system in response to its processor, such as amicroprocessor, executing sequences of instructions contained in amemory, such as ROM 107, volatile RAM 105, non-volatile memory 106,cache 104 or a remote storage device. In various embodiments, hardwiredcircuitry may be used in combination with software instructions toimplement the present invention. Thus, the techniques are not limited toany specific combination of hardware circuitry and software, nor to anyparticular source for the instructions executed by the data processingsystem. In addition, throughout this description, various functions andoperations are described as being performed by or caused by softwarecode to simplify description. However, those skilled in the art willrecognize what is meant by such expressions is that the functions resultfrom execution of the code by a processor, such as the microprocessor103.

A machine readable medium can be used to store software and data whichwhen executed by a data processing system causes the system to performvarious methods of the present invention. This executable software anddata may be stored in various places including for example ROM 107,volatile RAM 105, non-volatile memory 106 and/or cache 104. Portions ofthis software and/or data may be stored in any one of these storagedevices.

Thus, a machine readable medium includes any mechanism that provides(i.e., stores and/or transmits) information in a form accessible by amachine (e.g., a computer, network device, personal digital assistant,manufacturing tool, any device with a set of one or more processors,etc.). For example, a machine readable medium includesrecordable/non-recordable media (e.g., read only memory (ROM); randomaccess memory (RAM); magnetic disk storage media; optical storage media;flash memory devices; etc.), as well as electrical, optical, acousticalor other forms of propagated signals (e.g., carrier waves, infraredsignals, digital signals, etc.); etc.

In the foregoing specification, the invention has been described withreference to specific exemplary embodiments thereof. It will be evidentthat various modifications may be made thereto without departing fromthe broader spirit and scope of the invention as set forth in thefollowing claims. The specification and drawings are, accordingly, to beregarded in an illustrative sense rather than a restrictive sense.

What is claimed is:
 1. A method of designing an integrated circuit (IC),the method comprising: determining a placement decision for a portion ofa design of the IC at a high level circuit representation; determiningan incomplete placement information including a resource availabilityfor the portion of the IC based on the placement decision; anddetermining one or more synthesis transforms based on the resourceavailability for the portion of the design of the IC at the high levelcircuit representation, wherein at least the determining the incompleteplacement information, and determining the one or more synthesistransforms are continuously repeated until an optimized design state isreached, wherein at least one of the determining the placement decision,the determining the incomplete placement information, and determiningone or more synthesis transforms is performed using a processor.
 2. Amethod as in claim 1 wherein the high level circuit representationincludes at least one component which has not had an implementation, ina chip primitive, selected for the component, and the optimized designstate includes a chip primitive level netlist.
 3. A method as in claim 1further comprising: repeating a synthesis transform for the portion ofthe high level circuit presentation previously synthesized.
 4. A methodas in claim 1 further comprising: determining placement decisions whilesynthesis from the high level circuit description is still to becompleted.
 5. A method as in claim 1 wherein the synthesis transform isone of: an adder tree decomposition; an and/or gate decomposition; aflattening of the netlist; an electronic multiplexer decomposition; alogic optimization; a logic decomposition; an undo/do resource sharing;a logic replication; a logic factorization; a Shannon expansion; a bitsplicing; a mux/pmux collapsing and timing driven decomposition; and adetour removal.
 6. A method as in claim 1 wherein the synthesistransform assembles RTL components compiled from the high level circuitrepresentation.
 7. A method as in claim 1 wherein the synthesistransform is incremental.
 8. A method as in claim 1 wherein thesynthesis transform is partial synthesis for a few objects for theportion of the circuit design.
 9. A non-transitory machine readablestorage medium containing a plurality of executable instructions, whichwhen executed on a digital processing system cause said digitalprocessing system to perform operations to design an integrated circuit(IC), said operations comprising: determining a placement decision for aportion of a design of the IC at a high level circuit representation;determining an incomplete placement information including a resourceavailability for the portion of the IC based on the placement decision;and determining one or more synthesis transforms based on the resourceavailability for the portion of the design at the high level circuitrepresentation, wherein at least the determining the incompleteplacement information, and determining the one or more synthesistransforms are continuously repeated until an optimized design state isreached.
 10. A non-transitory machine readable storage medium as inclaim 9 wherein the high level circuit representation includes at leastone component which has not had an implementation, in a chip primitive,selected for the component, and the optimized design state includes achip primitive level netlist.
 11. A non-transitory machine readablestorage medium as in claim 9 further comprising instructions that causethe system to perform operations comprising repeating a synthesistransform for the portion of the high level circuit presentationpreviously synthesized.
 12. A non-transitory machine readable storagemedium as in claim 9 further comprising instructions that cause thesystem to perform operations comprising determining placement decisionswhile synthesis from the high level circuit description is still to becompleted.
 13. A non-transitory machine readable storage medium as inclaim 9 wherein the synthesis transform is one of: an adder treedecomposition; an and/or gate decomposition; a flattening of thenetlist; an electronic multiplexer decomposition; a logic optimization;a logic decomposition; an undo/do resource sharing; a logic replication;a logic factorization; a Shannon expansion; a bit splicing; a mux/pmuxcollapsing and timing driven decomposition; and a detour removal.
 14. Anon-transitory machine readable storage medium as in claim 9 wherein thesynthesis transform assembles RTL components compiled from the highlevel circuit representation.
 15. A non-transitory machine readablestorage medium as in claim 9 wherein the synthesis transform isincremental.
 16. A non-transitory machine readable storage medium as inclaim 9 wherein the synthesis transform is partial synthesis for a fewobjects for the portion of the circuit design.
 17. A data processingsystem to design an integrated circuit (IC), the data processing systemcomprising: means for determining a placement decision for a portion ofa design of the IC at a high level circuit representation; means fordetermining an incomplete placement information including a resourceavailability for the portion of the IC based on the placement decision;and means for determining one or more synthesis transforms based on theresource availability for the portion of the design at the high levelcircuit representation, wherein at least one of the determining theincomplete placement information, and determining one or more synthesistransforms are continuously repeated until an optimized design state isreached.
 18. A data processing system as in claim 17 wherein the highlevel circuit representation includes at least one component which hasnot had an implementation, in a chip primitive, selected for thecomponent, and the optimized design state includes a chip primitivelevel netlist.
 19. A data processing system as in claim 17 furthercomprising means for repeating a synthesis transform for the portion ofthe high level circuit presentation previously synthesized.
 20. A dataprocessing system as in claim 17 further comprising: means fordetermining placement decisions while synthesis from the high levelcircuit description is still to be completed.
 21. A data processingsystem as in claim 17 wherein the synthesis transform is one of: anadder tree decomposition; an and/or gate decomposition; a flattening ofthe netlist; an electronic multiplexer decomposition; a logicoptimization; a logic decomposition; an undo/do resource sharing; alogic replication; a logic factorization; a Shannon expansion; a bitsplicing; a mux/pmux collapsing and timing driven decomposition; and adetour removal.
 22. A data processing system as in claim 17 wherein thesynthesis transform assembles RTL components compiled from the highlevel circuit representation.
 23. A data processing system as in claim17 wherein the synthesis transform is incremental.
 24. A data processingsystem as in claim 17 wherein the synthesis transform is partialsynthesis for a few objects for the portion of the circuit design.